/*
 * EditLinePropertiesAction.java
 * 
 * Created by demory on Sep 6, 2009, 10:19:46 PM
 * 
 * Copyright 2008 David D. Emory
 * 
 * This file is part of Five Points. See <http://www.fpdev.org> for
 * additional information regarding the project.
 * 
 * Five Points is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Five Points is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Five Points.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.fpdev.apps.cart.actions;

import java.awt.Color;
import org.fpdev.apps.cart.CartAction;
import org.fpdev.apps.cart.Cartographer;
import org.fpdev.apps.cart.network.Line;

/**
 *
 * @author demory
 */
public class EditLinePropertiesAction implements CartAction {

  private Line line_;
  private Color color_;
  private int width_, offset_;
  private int month_, year_;

  public EditLinePropertiesAction(Line line, Color color, int width, int offset, int month, int year) {
    line_ = line;
    color_ = color;
    width_ = width;
    offset_ = offset;
    month_ = month;
    year_ = year;
  }

  public boolean doAction(Cartographer cart) {
    /*line_.getStyle().setColor(color_);
    line_.getStyle().setWidth(width_);
    line_.getStyle().setBaseOffset(offset_);
    line_.setOpenMonth(month_);
    line_.setOpenYear(year_);
    cart.getGUI().getControlFrameManager().getLinesFrame().updateRow(line_);
    return true;*/
    return false;
  }

  public boolean undoAction(Cartographer cart) {
    throw new UnsupportedOperationException("Not supported yet.");
  }

  public String getName() {
    return "Edit Line Properties";
  }

}
